/**
 * 
 */
package praktikumid.w03.p3;

/**
 * @author Aleksandr Lenin
 *
 */
public class Item {
	public int number;
	public boolean available;
	public String name;
	
	public static int x;
	private static int y;
	
	private final int const1 = 1;
	public final int NUMBER_OF_ITEMS = 10;
	
	// doSomething()
	public void doSomething() {
		System.out.println("Doing something");
	}
	
	//doSomething(10);
	public void doSomething(int times) {
		y = times;
	}
	
	// doSomething(1,2,3);
	private int doSomething(int a, int b, int c) {
		doSomethingHidden();
		return a + b + c;
	}
	
	// boolean result = doSomething("some string");
	public boolean doSomething(String something) {
		/*
		if (available == true) {
			return true;
		} else {
			return false;
		}
		*/
		
		return available;
	}
	
	// doSomethingHidden();
	private void doSomethingHidden() {
		System.out.print("Private methods ");
		System.out.print("cannot be called ");
		System.out.println("outside of object.");
	}
	
	public static void print() {
		System.out.println(x + y);
	}
	
}
